#ifndef ADMIN_INTERFACE_H
#define ADMIN_INTERFACE_H

#include <QDialog>
#include "book.h"
#include "student.h"
#include "debug.h"
#include <utils.h>
#include <utils.h>
#include "add_message.h"
#include "show_messagelist.h"
#include "revise.h"
#include "add_admin.h"
#include "bookinfo.h"
#include "debug_addmenu.h"
#include "exportfile.h"
#include "importstudent.h"
#include "herobank.h"
#include "changecode.h"
class bookinfo;
class add_admin;
class deBug;
class exportfile;
using namespace bookandrecord;
using namespace student;
namespace Ui {
class admin_interface;
}

class admin_interface : public QDialog
{
    Q_OBJECT

public:
    explicit admin_interface(QWidget *parent = nullptr);
    ~admin_interface();
    void showstu(vector<Student*>stuList,int confstu_num);
    void clearstu_line1();
    void clearstu_line2();
    void clearstu_line3();
    void clearstu_buttom();
    void showstu_buttom1();
    void showstu_buttom2();
    void showstu_buttom3();
    void showmenu(vector<Menu*>menuList,int confstu_num);
    void showmenusingle(Menu* menu);
    void clearmenu_line1();
    void clearmenu_line2();
    void clearmenu_line3();
    void clearmenu_buttom();
    void showmenu_buttom1();
    void showmenu_buttom2();
    void showmenu_buttom3();
    void showrecord();
    void F5();

signals:
    void sendData(Student*);
    void sendData(Student*,int);
    void sendData(Menu*);
//signals:
    //void sendDate1(int);
private slots:

    void on_pushButton_05_clicked();

    void on_pushButton_03_clicked();

    void on_pushButton_04_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_15_clicked();

    void on_pushButton_25_clicked();

    void on_pushButton_35_clicked();

    void on_pushButton_16_clicked();

    void on_pushButton_26_clicked();

    void on_pushButton_36_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_06_clicked();

    void on_pushButton_07_clicked();

    void on_pushButton_08_clicked();

    void on_pushButton_clicked();

    void getData(Student *,int);//得到数据的槽函数
    void on_pushButton_45_clicked();
    
    void on_pushButton_55_clicked();

    void on_pushButton_65_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_7_clicked();

    void on_pushButton_8_clicked();

    void on_pushButton_9_clicked();

    void on_pushButton_10_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_46_clicked();

    void on_pushButton_56_clicked();

    void on_pushButton_66_clicked();

    void on_pushButton_14_clicked();

    void on_pushButton_11_clicked();

    void on_pushButton_12_clicked();

    void on_pushButton_13_clicked();

    void on_pushButton_17_clicked();

    void on_pushButton_18_clicked();

    void on_pushButton_19_clicked();

    void on_pushButton_20_clicked();

    void on_pushButton_21_clicked();

private:
    Ui::admin_interface *ui;
    revise *reviseo;
    int page_stu,page_menu;
    int type;//管理员是0 超管2
     vector<Student*> stuList;
     vector<Menu*>menuList;
     int pagesize;
     int pagestu_num,pagemenu_num;
     int confstu_num,confmenu_num;
     Menu *menu;
     add_admin *addadmin;
     bookinfo *bookinfopage;
     vector<Record*>recordList;
     int confmenunum;
     debug_addMenu* addmenu;
     deBug* showall;
     exportfile* exporto;
     importStudent* importUI;
     changeCode*change;
     herobank*hero;
     Student* thisadmin;
     add_Message* addMessageUI;
     show_messageList* messageListUI;
     //signin *signino;
};

#endif // ADMIN_INTERFACE_H
